#if !defined(AFX_PROGRESSBAR_H__1E82E2C9_D3C4_11D1_A4FF_00AA00C0AFD5__INCLUDED_)
#define AFX_PROGRESSBAR_H__1E82E2C9_D3C4_11D1_A4FF_00AA00C0AFD5__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "Resource.h"
#include "TextProgressCtrl.h"
#include "ImageButton.h"

// CProgressBar

class CMainFrame;
class CProgressBar : public CDialogBar
{
	DECLARE_DYNAMIC(CProgressBar)

public:
	CProgressBar();
	virtual ~CProgressBar();

	// Attributes
public:
	CMainFrame* m_pParent;

	void ChangeMode();
	void UnchangeMode();

	//{{AFX_DATA(CProgressBar)
	enum { IDD = IDD_PROGRESSBAR };
	CTextProgressCtrl m_progress;
	CButton m_cancel;
	CImageButton m_save;
	CImageButton m_print;
	CImageButton m_none;

	enum TYPE { NONE, SAVE, PRINT };
	TYPE m_outputType;

	void OnBnClickedOutput();

	//}}AFX_DATA

	// Operations
public:

	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProgressBar)
	//}}AFX_VIRTUAL

	// Implementation
protected:
	virtual void DoDataExchange( CDataExchange* pDX );

protected:
	// Generated message map functions
	//{{AFX_MSG(CProgressBar)
	afx_msg LRESULT HandleInitDialog(WPARAM, LPARAM);
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnUpdateCancel(CCmdUI* pCmdUI);
	afx_msg void OnUpdateSave(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePrinter(CCmdUI* pCmdUI);
	afx_msg void OnUpdateNone(CCmdUI* pCmdUI);
	virtual BOOL Create(CWnd* pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID);
	afx_msg void OnBnClickedCancel();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	afx_msg void OnBnClickedSave();
	afx_msg void OnBnClickedPrinter();
	afx_msg void OnBnClickedNone();
};


//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PROGRESSBAR_H__1E82E2C9_D3C4_11D1_A4FF_00AA00C0AFD5__INCLUDED_)